﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OneShoppingDAL;
using OneShoppingBLL;
using OneShoppingUtility;
using OneShoppingModel;

public partial class Backstage_Pages_sysmng_pay :BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {

            if (role.RoleId != 1)
            {
                UtilityMessageBox.Show(this, "您没有权限访问");
                return;
            }
            int listId = Convert.ToInt32(Request["listId"]);
            Profit p = ProfitBLL.GetInstance().GetEntity(r => r.ListId == listId);
            p.paytime = DateTime.Now;
            p.PlayStatus = 1;

          bool rr=  ProfitBLL.GetInstance().Update(p);
          if (!rr) {
              Label1.Text = "支付失败";
              UtilityMessageBox.Show(this, "支付失败");
              

          }
        }
        catch {
            UtilityMessageBox.Show(this,"支付失败");
        
        }
    }
}